package cn.cdeden.knowledge.mapper;

import cn.cdeden.knowledge.domain.SysSchedule;
import cn.cdeden.knowledge.domain.dto.SysScheduleDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysScheduleMapper extends BaseMapper<SysSchedule> {

    List<SysScheduleDto> getAllAndPermission(@Param("scheduleIds") List<Long> scheduleIds, @Param("userId") Long userId);

    List<Long> getAllAndDetails(@Param("scheduleId") Long scheduleId, @Param("userId") Long userId);

    Boolean deleteBatchPersonnel(@Param("scheduleId") Long scheduleId, @Param("userIds") List<Long> userIds);

    Boolean deleteBatchPermissions(@Param("scheduleId") Long scheduleId, @Param("userIds") List<Long> userIds);

//    List<SysCalendar> attentionShow(@Param("userIds") List<Long> userIds, @Param("startTime") String startTime, @Param("endTime") String endTime);
}
